<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>05自定义JS对象</title>
</head>
<body>
<script>
    let p1 = {
        name:"玥玥",
        age: 21,
        like:"直播",
        work:function (){
            console.log(this.name+"正在"+this.like+"!")
        }
    }
    console.log(p1);
    p1.work();
    let p2 = {};
    p2.name = "咩咩";
    p2.age = 25;
    p2.like = "发癫";
    p2.work = function () {
        console.log(this.name + "正在" + this.like + "!")
    }
    p2.work();
</script>
</body>
</html>